<%@ page contentType="text/html;charset=UTF-8"%>
<script type="text/javascript">
	function top_setHome() {
		var url = $.url(window.location.href).attr('path');
		if ($.browser.msie) {
			document.body.style.behavior = 'url(#default#homepage)';
			document.body.setHomePage(url);
		} else {
			alert('您的浏览器不支持自动设置首页, 请使用浏览器菜单手动设置!');
		}
	}

	function top_addFavorite() {
		var url = $.url(window.location.href).attr('path');
		try {
			window.external.addFavorite(url, title);
		} catch (e) {
			try {
				window.sidebar.addPanel(title, url, '');
			} catch (e) {
				alert('您的浏览器不支持自动添加到收藏夹, 请使用浏览器菜单手动设置!');
			}
		}
	}

	function top_setWrapWidth() {
		if ($('#setWidthA').html() == '切换到窄版') {
			$('.wrap').addClass('wrap_narrow');
			$('#setWidthA').html('切换到宽版');
		} else {
			$('.wrap').removeClass('wrap_narrow');
			$('#setWidthA').html('切换到窄版');
		}
	}
</script>
<div class='top'>
	<div class='left'>
		<a href="javascript:;" onclick="top_setHome();">设为首页</a> <a
			href="javascript:;" onclick="top_addFavorite();">收藏本站</a>
	</div>
	<div class='right'>
		<a id='setWidthA' href="javascript:;" onclick="top_setWrapWidth();">切换到窄版</a>
	</div>
</div>